﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CarCost.aspx.cs" Inherits="Webcar.Car.CarCost" %>
<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>

<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>单车成本</title>
</head>
<body style="margin:0px 0px 0px 0px; padding:0px 1px 0px 1px; overflow-y:hidden">
    <form id="form1" runat="server">
    <div>
        <uc1:NaviBar ID="NaviBar1" runat="server" />
        <uc2:SearchPanel ID="SearchPanel1" runat="server"  OnSearchClick = "Seach_Click"/>
    </div>
        <asp:GridView ID="GridView1"  DataKeyNames="carno,month" SkinID="gridviewSkin_line" AutoGenerateColumns="False"
         runat="server" Width="100%" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                
                <asp:TemplateField HeaderText="所属单位">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlDeptName" runat="server" NavigateUrl="" Text='<%# Eval("dept_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="牌照号">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlRecordNo" runat="server" NavigateUrl="" Text='<%# Eval("record_no") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="month" HeaderText="月份" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="zs_fee" HeaderText="住宿费" DataFormatString="{0:F1}"  >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="cl_fee" HeaderText="差旅费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="lq_fee" HeaderText="路桥费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="xc_fee" HeaderText="洗车费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="tc_fee" HeaderText="停车费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="ns_fee" HeaderText="年审费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="lq_month" HeaderText="路桥年票" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="lq_year" HeaderText="路桥月票" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="road_fee" HeaderText="养路费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="oil_fee" HeaderText="油料费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="other_fee" HeaderText="其他费" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="sum_fee" HeaderText="合计" DataFormatString="{0:F1}" >
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="DeleteBtn" runat="server" Text = "删除" CommandName="Delete"
                         ></asp:LinkButton>
                         <asp:HyperLink ID="linkEdit" runat="server" Text = "编辑"  NavigateUrl =""
                         ></asp:HyperLink>
                            
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <div class="pager">
            <div style="text-align:left;float:left;padding-top:4px">
                <asp:HyperLink ID="HyperLink2" NavigateUrl="CarCostEdit.aspx" runat="server">增加单车成本</asp:HyperLink>
            </div>
            <div class="p">
                <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>" OnPageIndexChanged="WebPager1_PageIndexChanged"  />
            </div>
        </div>
        
    </form>
</body>
</html>
